import { openBuildService, buildService } from '../../helper/service'

const settings = {
    //智慧工地项目对接情况列表
    getProjectJoinData: {
        url: 'plat/web/v1/project/butt_list',
        method: 'get'
    },
    //智慧工地项目对接情况-导出全部
    importAll: {
        url: '/web/v1/project/butt_export',
        method: 'get'
    },
    //大屏数据维护
    screenExport: {
        url: '/web/v1/project/butt_edit',
        method: 'put'
    },
    //双击切换是否加入统计
    isBtnChange: {
        url: '/web/v1/project/butt_edit_join',
        method: 'put'
    },
    //大屏-公司智慧工地接入情况饼图 - 未对接详情
    notJoinDetail: {
        url: '/web/v1/project/comp_pie_chart/not_butt_deatil',
        method: 'get'
    },
}
const platSettings = {
    //大屏- 公司智慧工地接入情况按明细列表
    getButList: {
        url: '/web/v1/project/comp_butt_list',
        method: 'get',
    },
    //大屏-项目接入覆盖率
    coverProject: {
        url: '/web/v1/project/butt_project_coverage',
        method: 'get'
    },
    //大屏-建投单位下四个单位项目接入数量
    joinNum: {
        url: '/web/v1/project/butt_four_comp',
        method: 'get'
    },
    //大屏-纳入统计项目总数
    joinTotal: {
        url: '/web/v1/project/butt_join_sta_num',
        method: 'get'
    },
    //大屏-公司智慧工地接入情况饼图
    jpinPieChart: {
        url: '/web/v1/project/comp_pie_chart',
        method: 'get'
    },
    getNotButtDetail: { //大屏- 公司智慧工地接入情况饼图 - 未对接详情
        url: '/web/v1/project/comp_pie_chart/not_butt_detail',
        method: 'get'
    },
    //大屏-项目详情,四项对接情况判决
    joinStatus: {
        url: '/web/v1/project/project_butt_judge',
        method: 'get'
    },
    projectButtOverview: { //对接总览
        url: '/api/v3/screen/project/project_butt_overview',
        method: 'get'
    }
}


export default {...openBuildService(settings), ...buildService(platSettings) }